﻿using Inaction;
using Inaction.Mapping;
using System;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Security.Principal;

namespace Inaction.Security
{
    public interface IIdentity :System.Security.Principal.IIdentity
    {
        #region 属性
        byte[] Token { get; }
        bool IsAdmin { get; }
        string UserNumber { get; }
        Guid? Id { get; }
        Guid? DepartmentId { get; }
        #endregion
    }

    [Serializable]
    public enum UserType
    {
        [Description("匿名用户")]
        Anonymous = 0,
        [Description("系统用户")]
        User = 1,
        [Description("系统管理员")]
        Admin = 99
    }
}
